#include <stdio.h>
int a=2,c=4;
void f(int a,int *x){
    int b=10;
    static int c=20;
    b+=a++;
    printf("%d\n",b);
    c+=a+b;
    printf("%d %d %d\n",a,b,c);
    *x=c+2;
}
void main(){
    f(a,&c);
    printf("%d %d\n",a,c);
    f(3+c,&a);
    printf("%d %d",a,c);
}